package org.jasig.cas.ticket.registry;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

public class MySessionListener implements HttpSessionListener {

	private MySessionContext msc = MySessionContext.getInstance();
	
	@Override
	public void sessionCreated(HttpSessionEvent httpSessionEvent) {
		msc.addSession(httpSessionEvent.getSession());
	}

	@Override
	public void sessionDestroyed(HttpSessionEvent httpSessionEvent) {
		msc.delSession(httpSessionEvent.getSession());
	}

}
